export default {
	state: {
		fmaxBuyPrice: 0, // 涨停板
		fminBuyPrice: 0, // 跌停板
		fvirtualwalletFB_DJ: 0, // 法币-冻结
		fvirtualwalletFB_KY: 0, // 法币-可用
		fvirtualwalletJY_DJ: 0, // 交易币-可用
		fvirtualwalletJY_KY: 0, // 交易币-可用
		listBuy: [], // 多档行情列表买入
		listSell: [], // 多档行情列表买出
		recordTransaction: [],//已成交的记录
		ftrademappingid: 0,
		kline:false,
	},
	mutations: {
		set_trade_limit(state, o) {
			state.fmaxBuyPrice = o.fmaxBuyPrice
			state.fminBuyPrice = o.fminBuyPrice
			state.fvirtualwalletFB_DJ = o.fvirtualwalletFB_DJ
			state.fvirtualwalletFB_KY = o.fbTotal
			state.fvirtualwalletJY_DJ = o.fvirtualwalletJY_DJ
			state.fvirtualwalletJY_KY = o.jyTotal
		},
		set_trade_list(state, data) {
			state.listBuy = data.listBuy
			state.listSell = data.listSell
			state.recordTransaction = data.recordTransaction
		},
		set_trade_ftrademappingid(state, ftrademappingid) {
			state.ftrademappingid = ftrademappingid
		},
		set_kline(state,fl){
			state.kline = fl
		},
	},
}
